Skip to content

Validate domain in qualified pipe lookups and handle parse errors#686

Merged
lchoquel merged 1 commit intofeature/Epic-mthds-1from
feature/Display-name-and-fixes
Feb 17, 2026
Merged

Validate domain in qualified pipe lookups and handle parse errors#686
lchoquel merged 1 commit intofeature/Epic-mthds-1from
feature/Display-name-and-fixes

Conversation

@lchoquel
Copy link
Member

@lchoquel lchoquel commented Feb 17, 2026

Summary

  • PipeLibrary.get_optional_pipe now verifies that the domain path in a qualified ref matches the pipe's actual domain_code, returning None on mismatch instead of silently ignoring the qualifier
  • QualifiedRefError is caught gracefully so that malformed refs return None rather than raising
  • Added unit tests for pipe library lookup covering domain validation, cross-package refs, and error handling

Test plan

  • New unit tests in tests/unit/pipelex/libraries/test_pipe_library_lookup.py
  • Updated existing cross-package loading test to include domain_code

🤖 Generated with Claude Code


Note

Low Risk
Small, localized lookup-behavior change with added tests; main risk is potential behavior change for callers that previously relied on domain qualifiers being ignored.

Overview
PipeLibrary.get_optional_pipe now catches QualifiedRefError so malformed dotted or cross-package refs return None instead of raising.

For both domain-qualified refs (domain.pipe) and cross-package refs (alias->domain.pipe), lookups now validate that the ref’s domain matches the target pipe’s domain_code; mismatches return None (and get_required_pipe surfaces this as PipeNotFoundError). New unit tests cover domain enforcement and malformed-ref behavior, and an existing cross-package test is updated to set domain_code.

Written by Cursor Bugbot for commit d15b9ff. This will update automatically on new commits. Configure here.

PipeLibrary.get_optional_pipe now verifies the domain path matches the
pipe's actual domain_code, returning None on mismatch instead of silently
ignoring the qualifier. QualifiedRefError is caught gracefully so that
malformed refs return None rather than raising.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@lchoquel lchoquel merged commit e0ac60c into feature/Epic-mthds-1 Feb 17, 2026
23 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments